package study.fanxing.fanxinglei;

import lombok.Data;

@Data
public class NiuNai implements YinLiao<NiuNai>{

    private int hanliang;

    private String chengfen;

    @Override
    public NiuNai drink(NiuNai niuNai) {
        return niuNai;
    }

    @Override
    public NiuNai buy(int hanliang) {
        NiuNai niuNai = new NiuNai();
        niuNai.setHanliang(hanliang);
        return niuNai;
    }

    @Override
    public String who(String name) {
        return name;
    }
}
